(read-passwd-toggle-visibility): Fix some loose ends
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 5 May 2024 14:43:37 +0000 (10:43 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 5 May 2024 14:43:37 +0000 (10:43 -0400)
commit61ad641893bc521e98cc06162634299d57b2bf8a
treed0662ab43353dc7b7088ef1a9f4f6136d6d0e8c2
parent63f9f2259e9cf6b17c5092b09c3cf0e37c7e6fae
(read-passwd-toggle-visibility): Fix some loose ends

* lisp/auth-source.el (read-passwd-toggle-visibility): Make sure
we operate on the minibuffer even if some other window was
selected when the little icon was pressed.  Don't hardcode the
keymap representation.  Use the `keymap` property rather than
the `local-map` property so it can't be accidentally shadowed
by something like a minor-mode map.
lisp/auth-source.el